projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d3014c2
)
testgtk: Fix the test scrolling test
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 1 Jan 2018 15:40:09 +0000
(10:40 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Tue, 2 Jan 2018 23:14:13 +0000
(18:14 -0500)
We need to expand here, otherwise things look wrong.
tests/testgtk.c
patch
|
blob
|
history
diff --git
a/tests/testgtk.c
b/tests/testgtk.c
index d709e213320ad0f70fddb37dd00df4043496092f..05257bceea009c07e73b8f222c5b98cea4945a93 100644
(file)
--- a/
tests/testgtk.c
+++ b/
tests/testgtk.c
@@
-7148,6
+7148,8
@@
create_scroll_test (GtkWidget *widget)
scroll_test_pos = 0.0;
drawing_area = gtk_drawing_area_new ();
+ gtk_widget_set_hexpand (drawing_area, TRUE);
+ gtk_widget_set_vexpand (drawing_area, TRUE);
gtk_drawing_area_set_content_width (GTK_DRAWING_AREA (drawing_area), 200);
gtk_drawing_area_set_content_height (GTK_DRAWING_AREA (drawing_area), 200);
gtk_drawing_area_set_draw_func (GTK_DRAWING_AREA (drawing_area),